import service from '../../network/service'

// 专业类目列表
export const majorClassList = (params) => {
    return service({
        url: '/major/classList',
        method: 'post',
        params: params
    })
};
/*
    /major/classList?level=1
    level=1  是本科 level=2 是专科
*/

// 专业树
export const majorTree = (params) => {
    return service({
        url: '/major/tree',
        method: 'post',
        params: params
    })
};
/*
    /major/tree?classId=1
     classId 是左侧选择的专业类目Id
     (当videoId>0 时 出现播放小图标)
*/

// 专业详情
export const majorDetails = (params) => {
    return service({
        url: '/major/find',
        method: 'post',
        params: params
    })
};
/*
    /major/find?majorId=2
    majorId 专业Id
*/

// 专业就业情况
export const majorJob = (params) => {
    return service({
        url: '/major/prospects',
        method: 'post',
        params: params
    })
};
/*
    /major/prospects?majorId=2
    majorId 专业Id
*/

// 搜索热门搜索关键字
export const searchHotWord = (data) => {
    return service({
        url: '/major/hotword/list',
        method: 'post',
        data: data
    })
};

// 搜索热门搜索关键字
export const searchMajor = (params) => {
    return service({
        url: '/major/search',
        method: 'post',
        params: params
    })
};
/*
    /major/search?keyword=计算机
    keyword 专业关键字
*/